package com.itheima.train.dao.impl;

import com.itheima.train.dao.CZYGroupDao;
import com.itheima.train.domain.CZYGroupDO;
import com.itheima.train.mapper.CZYGroupMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class CZYGroupDaoImpl implements CZYGroupDao {
    /**
     * 组管理mapper组件
     */
    @Autowired
    private CZYGroupMapper groupMapper;

    /**
     * 组列表查询
     *
     * @param adminId
     * @return
     */
    @Override
    public List<CZYGroupDO> findGroupListByAdminId(Long adminId) {
        return groupMapper.findGroupListByAdminId(adminId);
    }

    @Override
    public List<CZYGroupDO> findGroupListPage(Long adminId) {
        return groupMapper.findGroupListPage(adminId);
    }
}
